﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TranslateApp.Common
{
    internal abstract class BaseApi
    {
        /// <summary>
        /// API地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 译文语言
        /// </summary>
        public string TargetLanguage { get; set; }

        /// <summary>
        /// 原文语言
        /// </summary>
        public string SourceLanguage { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AccessKeyId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AccessKeySecret { get; set; }


        public BaseApi() { }

        /// <summary>
        /// 翻译
        /// </summary>
        /// <param name="sourceText"></param>
        /// <returns></returns>
        public abstract string Translate(string sourceText);
    }
}
